package cn.glccc.ds.base.service.impl;

import cn.glccc.ds.base.entity.BaseEntity;
import cn.glccc.ds.base.mapper.BaseMapper;
import cn.glccc.ds.base.service.IBaseService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * <p>基类 ServiceImpl 实现类，继承自MyBatisPlus提供的ServiceImpl类</p>
 * <p>基类只能写公共通用的方法，禁止写独立的业务逻辑</p>
 * <pre><code>
 *     // 可以直接使用baseMapper进行查询
 *     this.baseMapper.selectById(id);
 * </code></pre>
 *
 * @author glccc
 * @date 2024-06-07
 */
public class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseEntity> extends ServiceImpl<M, T> implements IBaseService<T> {

    @Override
    public String selectNow() {
        return this.baseMapper.selectNow();
    }

}
